import { Utility } from "@/libs/utility"

/**
 * form表单的格式配置
 *
 */
export const TestFinishFormConfig = [
	{
		fieldName: "id",
		fieldCNName: "",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "",
	},
	{
		/** 字段名，如：name */
		fieldName: "drugName",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "药品名称",
		/** 字段的值，如：张三 */
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
		span: 2,
	},
	{
		fieldName: "drugType",
		fieldCNName: "药品类型",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
		span: 2,
		itemList: Utility.getDictList("drug_type"),
	},
	{
		fieldName: "drugNorms",
		fieldCNName: "规格",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	{
		fieldName: "drugUnit",
		fieldCNName: "单位",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	{
		/** 字段名，如：name */
		fieldName: "formulation",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "剂型",
		/** 字段的值，如：张三 */
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		itemList: Utility.getDictList("drug_form"),
		span: 2,
	},
	{
		fieldName: "bolus",
		fieldCNName: "剂量",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputNumber",
		span: 2,
	},
	{
		/** 字段名，如：name */
		fieldName: "drugWay",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "给药途径",
		/** 字段的值，如：张三 */
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		itemList: Utility.getDictList("drug_way"),
		span: 2,
	},
	{
		fieldName: "lotNumber",
		fieldCNName: "批号",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	{
		/** 字段名，如：name */
		fieldName: "drugCondition",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "给药条件",
		/** 字段的值，如：张三 */
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "textarea",
	},
	{
		/** 字段名，如：name */
		fieldName: "storageCondition",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "存储条件",
		/** 字段的值，如：张三 */
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "textarea",
	},
	{
		/** 字段名，如：name */
		fieldName: "drugSource",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "药品来源",
		/** 字段的值，如：张三 */
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "textarea",
	},
	{
		fieldName: "produceDate",
		fieldCNName: "生产日期",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "date",
		span: 2,
	},
	{
		fieldName: "effectiveDate",
		fieldCNName: "有效日期",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "date",
		span: 2,
	},
]
